package xin.yangshuai.transactional01.service.impl;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import xin.yangshuai.transactional01.dao.TestUserMapper;
import xin.yangshuai.transactional01.model.TestUser;
import xin.yangshuai.transactional01.model.TestUserExample;
import xin.yangshuai.transactional01.service.TestUserService;

import java.util.List;

@Service
public class TestUserServiceImpl implements TestUserService {

    @Autowired
    private TestUserMapper testUserMapper;

    @Override
    public List<TestUser> list() {
        TestUserExample example = new TestUserExample();
        return testUserMapper.selectByExample(example);
    }
}
